﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _8Group.MES.ILiService.DTO
{
    public class UpdateMachineryDTO
    {
        public int Id { get; set; }
        /// <summary>
        /// 设备类型编码
        /// </summary>
        public string MachineTypeCode { get; set; } = string.Empty;

        /// <summary>
        /// 设备类型名称
        /// </summary>
        public string MachineTypeName { get; set; } = string.Empty;

        /// <summary>
        /// 父类型ID，默认值为0，不能为空
        /// </summary>
        public long ParentTypeId { get; set; } = 0;

        /// <summary>
        /// 所有父节点ID，当前节点所有层级的父节点，各值之间用逗号进行分隔
        /// </summary>
        public string Ancestors { get; set; } = string.Empty;

        /// <summary>
        /// 是否启用，默认值为'Y'
        /// </summary>
        public char EnableFlag { get; set; } = 'Y';

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = string.Empty;

        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateBy { get; set; } = string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public string UpdateBy { get; set; } = string.Empty;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }
}
